package com.kinghood.productcenter.manager;

import com.kinghood.productcenter.common.model.dto.base.SkuQueryPageReqDTO;
import com.kinghood.productcenter.common.model.dto.sku.GetProductSkuReqDTO;
import com.kinghood.productcenter.common.model.dto.sku.UpdateProductSkuReqDTO;
import com.kinghood.productcenter.common.model.vo.product.ProductDetailVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * description
 *
 * @author zhangFanJun
 * @date 2024-01-22 10:05
 **/
public interface IProductSkuBaseManager {

    /**
     * sku详情
     *
     * @param in id
     * @return sku
     * @author zfj
     * @date 2024/1/17
     */
    ProductDetailVO getProductSku(GetProductSkuReqDTO in);

    /**
     * excel导入
     *
     * @param file     文件
     * @param response 响应
     * @author zfj
     * @date 2024/1/26
     */
    void uploadProductSku(MultipartFile file, HttpServletResponse response);

    /**
     * 添加sku
     *
     * @param in sku信息
     * @return id
     * @author zfj
     * @date 2024/1/17
     */
    Long addProductSku(UpdateProductSkuReqDTO in);

    /**
     * 修改sku
     *
     * @param in sku信息
     * @return id
     * @author zfj
     * @date 2024/1/17
     */
    Long updateProductSku(UpdateProductSkuReqDTO in);

    /**
     * 导出sku
     *
     * @param param    参数
     * @param response 回答
     * @return
     * @author jp
     * @date 2024/01/23 16:46
     */
    void exportSku(SkuQueryPageReqDTO param, HttpServletResponse response);

}
